
import bpy

from 节点.全局控制.Node.节点和插座基类 import bl_节点基类

import Core.bl_UI配色 as UI配色
import engine.initLIB.load_dll as engineLib
import ctypes












class C_Node_vec3Array1D_合并(bl_节点基类.C_Node_基类):
	bl_dname = 'bl_node_vec3Array1D_合并'
	bl_label = 'vec3Array1D_合并'
	bl_icon = 'FILE_IMAGE'

	def init(self, context):
		super(C_Node_vec3Array1D_合并, self).f_init(context)
		self.inputs.new('C_Socket_Vec3_Array1D', name='变量A')
		self.inputs.new('C_Socket_Vec3_Array1D', name='变量B')
		self.outputs.new('C_Socket_Vec3_Array1D', name='结果')
		self.f_toCPP()

	def f_toCPP(self):
		engineLib.flexCAPI.f_创建Vec3Array1D_合并节点(ctypes.c_wchar_p(self.id_data.name), ctypes.c_wchar_p(self.name), self.f_getPyObject());
		
		
		

class C_NODE_MENU_vec3Array1D_合并(bpy.types.Operator):
	bl_idname = 'node.create_node_vec_fff_array_i_merge'
	bl_label = 'vec3Array1D_合并'
	bl_options = {'REGISTER', 'UNDO'}
	def execute(self, context):
		bpy.ops.node.add_node(type='C_Node_vec3Array1D_合并', use_transform=True)
		return {'FINISHED'}
		









class C_Node_ivec3Array1D_合并(bl_节点基类.C_Node_基类):
	bl_dname = 'bl_node_ivec3Array1D_合并'
	bl_label = 'ivec3Array1D_合并'
	bl_icon = 'FILE_IMAGE'

	def init(self, context):
		super(C_Node_ivec3Array1D_合并, self).f_init(context)
		self.inputs.new('C_Socket_Vec3i_Array1D', name='变量A')
		self.inputs.new('C_Socket_Vec3i_Array1D', name='变量B')
		self.outputs.new('C_Socket_Vec3i_Array1D', name='结果')
		self.f_toCPP()

	def f_toCPP(self):
		engineLib.flexCAPI.f_创建iVec3Array1D_合并节点(ctypes.c_wchar_p(self.id_data.name), ctypes.c_wchar_p(self.name), self.f_getPyObject());
		
		
		

class C_NODE_MENU_ivec3Array1D_合并(bpy.types.Operator):
	bl_idname = 'node.create_node_vec_iii_array_i_merge'
	bl_label = 'ivec3Array1D_合并'
	bl_options = {'REGISTER', 'UNDO'}
	def execute(self, context):
		bpy.ops.node.add_node(type='C_Node_ivec3Array1D_合并', use_transform=True)
		return {'FINISHED'}







classes = (
	C_Node_vec3Array1D_合并,
	C_NODE_MENU_vec3Array1D_合并,

	C_Node_ivec3Array1D_合并,
	C_NODE_MENU_ivec3Array1D_合并,

)

def register():
	for c in classes:
		bpy.utils.register_class(c)
		
def unregister():
	for c in classes:
		bpy.utils.unregister_class(c)





